package com.situ.water_BE.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Angel
 * @since 2020-12-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="BeOrder对象", description="")
public class BeOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "OrderNo", type = IdType.ID_WORKER)
    private String orderNo;

    @TableField("OrderType")
    private Integer orderType;

    @TableField("StepID")
    private Integer stepID;

    @TableField("CreateEmp")
    private Integer createEmp;

    @TableField("CreateDate")
    private Date createDate;

    @TableField("CompleteEmp")
    private Integer completeEmp;

    @TableField("CompleteDate")
    private Date completeDate;

    @TableField("LastEditEmp")
    private Integer lastEditEmp;

    //@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("LastEditDate")
    private Date lastEditDate;

    @TableField("UserName")
    private String userName;

    @TableField("UserType")
    private String userType;

    @TableField("Address")
    private String address;

    @TableField("LinkMan")
    private String linkMan;

    @TableField("Phone")
    private String phone;

    @TableField("UseTarget")
    private String useTarget;

    @TableField("HouseHeight")
    private Integer houseHeight;

    @TableField("MaxAmount")
    private Integer maxAmount;

    @TableField("MeterTypeID")
    private Integer meterTypeID;

    @TableField("MeterCount")
    private Integer meterCount;

    @TableField("UserRemark")
    private String userRemark;

    @TableField("PayType")
    private String payType;

    @TableField("BankCompany")
    private String bankCompany;

    @TableField("BankNum")
    private String bankNum;

    @TableField("OldUserNo")
    private String oldUserNo;

    @TableField("OldUserName")
    private String oldUserName;

    @TableField("OldUserPhone")
    private String oldUserPhone;

    @TableField("OlduserAddr")
    private String olduserAddr;

    @TableField("OldMeter")
    private String oldMeter;

    @TableField("AuditEmpID")
    private Integer auditEmpID;

    @TableField("AuditMessage")
    private String auditMessage;

    @TableField("ProjectMoney")
    private Double projectMoney;

    @TableField("RealMoney")
    private Double realMoney;

    @TableField("PayDate")
    private Date payDate;

    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("ProjectDate1")
    private Date projectDate1;

    @DateTimeFormat(pattern ="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("ProjectDate2")
    private Date projectDate2;

    @TableField("AreaID")
    private Integer areaID;

    @TableField("AbortCause")
    private String abortCause;

    @TableField(exist = false)
    private String test;

    @TableField(exist = false)
    private Integer curr;

    @TableField(exist = false)
    private Integer limit;
}
